<?php
session_start(); 
if(!isset($_SESSION['userName'])){
header( 'location:../../index.php' ); 
}
	include("../../conf/connect.php");
	 $serial=$_GET['serial'];
	//$hid = $_GET['hid']; 
	 $hid= $_SESSION['usrHHid'];
	 $user_id =$_SESSION['user_id'];
	$bid = $_GET['bid'];
	$mmid = $_GET['mmid'];
	$resp_id=$_GET['resp_id'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title></title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link rel="stylesheet" type="text/css" href="../../style.css" media="screen" />
	<link rel="shortcut icon" href="../images/favicon.ico" />
</head>
<body class="iub_back">
<?php
		$sql = "SELECT $serial FROM adult_question WHERE user_id='$user_id' and hid='$hid' and resp_id='$resp_id' " ;
		$result = mysql_query($sql);
		$row = mysql_fetch_array($result);		
?>
<?php if($serial=='spn01_a'){?>
	<form method="post" action="update_operation.php?qus=<?php echo $serial;?>&amp;resp_id=<?php echo $resp_id;?>">	
		<table align="center" class="table_border">
			<tr align="left">
							<td align="left" valign="top">SPN01A: Chewing Pan:</td>
					</tr>
					<tr align="left">
							<td align="left" <?php if($row['spn01_a'] == ''||$row['spn01_a'] == '0'){?>bgcolor="#F7A244"<?php }?>>
								<select name="name">
									 <?php
											if($row['spn01_a'] == ''||$row['spn01_a'] == '0'){
											 echo "<option value='0' selected='selected'> Select</option>";
											}
											else{
												$hop=$row['spn01_a'];
												$sql1="SELECT value from retreive_data WHERE qus='spn01_b' and hoption='$hop' ";
												$result1= mysql_query($sql1) or die ("problem 2ND BLOCK OF RESPONDENT");
												$value = mysql_fetch_assoc($result1);
												$mv= $value['value'];
												echo "<option value='$hop' selected='selected'> $hop-$mv</option>";
											}
										?>
									<option value="1">1-Yes</option>
									<option value="3">3-No</option>
								</select>					
							</td>
					</tr>
					<tr>
							<td  align="right">
								<input type="submit" value="Update" class="input-box" />&nbsp;
							</td>
					</tr>	
			
		</table>
	</form>
<?php }?>
<?php if($serial=='spn01_b'){?>
	<form method="post" action="update_operation.php?qus=<?php echo $serial;?>&amp;resp_id=<?php echo $resp_id;?>">	
		<table align="center" class="table_border">
			<tr align="left">
							<td align="left" valign="top">SPN01B: Smoking Hukka:</td>
					</tr>
					<tr align="left">
							<td align="left" <?php if($row['spn01_b'] == ''||$row['spn01_b'] == '0'){?>bgcolor="#F7A244"<?php }?>>
								<select name="name">
									 <?php
											if($row['spn01_b'] == ''||$row['spn01_b'] == '0'){
											 echo "<option value='0' selected='selected'> Select</option>";
											}
											else{
												$hop=$row['spn01_b'];
												$sql1="SELECT value from retreive_data WHERE qus='spn01_b' and hoption='$hop' ";
												$result1= mysql_query($sql1) or die ("problem 2ND BLOCK OF RESPONDENT");
												$value = mysql_fetch_assoc($result1);
												$mv= $value['value'];
												echo "<option value='$hop' selected='selected'> $hop-$mv</option>";
											}
										?>
									<option value="1">1-Yes</option>
									<option value="3">3-No</option>
								</select>					
							</td>
					</tr>
					<tr>
							<td  align="right">
								<input type="submit" value="Update" class="input-box" />&nbsp;
							</td>
					</tr>	
			
		</table>
	</form>
<?php }?>
<?php if($serial=='spn01_c'){?>
	<form method="post" action="update_operation.php?qus=<?php echo $serial;?>&amp;resp_id=<?php echo $resp_id;?>">	
		<table align="center" class="table_border">
			<tr align="left">
							<td align="left" valign="top">SPN01C: Smoking (BIRI):</td>
					</tr>
					<tr align="left">
							<td align="left" <?php if($row['spn01_c'] == ''||$row['spn01_c'] == '0'){?>bgcolor="#F7A244"<?php }?>>
								<select name="name">
									 <?php
											if($row['spn01_c'] == ''||$row['spn01_c'] == '0'){
											 echo "<option value='0' selected='selected'> Select</option>";
											}
											else{
												$hop=$row['spn01_c'];
												$sql1="SELECT value from retreive_data WHERE qus='spn01_b' and hoption='$hop' ";
												$result1= mysql_query($sql1) or die ("problem 2ND BLOCK OF RESPONDENT");
												$value = mysql_fetch_assoc($result1);
												$mv= $value['value'];
												echo "<option value='$hop' selected='selected'> $hop-$mv</option>";
											}
										?>
									<option value="1">1-Yes</option>
									<option value="3">3-No</option>
								</select>					
							</td>
					</tr>
					<tr>
							<td  align="right">
								<input type="submit" value="Update" class="input-box" />&nbsp;
							</td>
					</tr>	
			
		</table>
	</form>
<?php }?>	
<?php if($serial=='spn01_d'){?>
	<form method="post" action="update_operation.php?qus=<?php echo $serial;?>&amp;resp_id=<?php echo $resp_id;?>">	
		<table align="center" class="table_border">
			<tr align="left">
							<td align="left" valign="top">SPN01D: Smoking (Cigarettes):</td>
					</tr>
					<tr align="left">
							<td align="left" <?php if($row['spn01_d'] == ''||$row['spn01_d'] == '0'){?>bgcolor="#F7A244"<?php }?>>
								<select name="name">
									 <?php
											if($row['spn01_d'] == ''||$row['spn01_d'] == '0'){
											 echo "<option value='0' selected='selected'> Select</option>";
											}
											else{
												$hop=$row['spn01_d'];
												$sql1="SELECT value from retreive_data WHERE qus='spn01_b' and hoption='$hop' ";
												$result1= mysql_query($sql1) or die ("problem 2ND BLOCK OF RESPONDENT");
												$value = mysql_fetch_assoc($result1);
												$mv= $value['value'];
												echo "<option value='$hop' selected='selected'> $hop-$mv</option>";
											}
										?>
									<option value="1">1-Yes</option>
									<option value="3">3-No</option>
								</select>					
							</td>
					</tr>
					<tr>
							<td  align="right">
								<input type="submit" value="Update" class="input-box" />&nbsp;
							</td>
					</tr>	
			
		</table>
	</form>
<?php }?>	
<?php if($serial=='spn01_e'){?>
	<form method="post" action="update_operation.php?qus=<?php echo $serial;?>&amp;resp_id=<?php echo $resp_id;?>">	
		<table align="center" class="table_border">
			<tr align="left">
							<td align="left" valign="top">SPN01E: Using (Gul):</td>
					</tr>
					<tr align="left">
							<td align="left" <?php if($row['spn01_e'] == ''||$row['spn01_e'] == '0'){?>bgcolor="#F7A244"<?php }?>>
								<select name="name">
									 <?php
											if($row['spn01_e'] == ''||$row['spn01_e'] == '0'){
											 echo "<option value='0' selected='selected'> Select</option>";
											}
											else{
												$hop=$row['spn01_e'];
												$sql1="SELECT value from retreive_data WHERE qus='spn01_b' and hoption='$hop' ";
												$result1= mysql_query($sql1) or die ("problem 2ND BLOCK OF RESPONDENT");
												$value = mysql_fetch_assoc($result1);
												$mv= $value['value'];
												echo "<option value='$hop' selected='selected'> $hop-$mv</option>";
											}
										?>
									<option value="1">1-Yes</option>
									<option value="3">3-No</option>
								</select>					
							</td>
					</tr>
					<tr>
							<td  align="right">
								<input type="submit" value="Update" class="input-box" />&nbsp;
							</td>
					</tr>	
			
		</table>
	</form>
<?php }?>	






<?php if($serial=='spn02_a'){?>
	<form method="post" action="update_operation.php?qus=<?php echo $serial;?>&amp;resp_id=<?php echo $resp_id;?>">	
		<table align="center" class="table_border">
			<tr align="left">
							<td align="left" valign="top">SPN02A: Currently Chewing Pan? :</td>
					</tr>
					<tr align="left">
							<td align="left" <?php if($row['spn02_a'] == ''||$row['spn02_a'] == '0'){?>bgcolor="#F7A244"<?php }?>>
								<select name="name">
									 <?php
											if($row['spn02_a'] == ''||$row['spn02_a'] == '0'){
											 echo "<option value='0' selected='selected'> Select</option>";
											}
											else{
												$hop=$row['spn02_a'];
												$sql1="SELECT value from retreive_data WHERE qus='spn02_b' and hoption='$hop' ";
												$result1= mysql_query($sql1) or die ("problem 2ND BLOCK OF RESPONDENT");
												$value = mysql_fetch_assoc($result1);
												$mv= $value['value'];
												echo "<option value='$hop' selected='selected'> $hop-$mv</option>";
											}
										?>
									<option value="1">1-Yes</option>
									<option value="3">3-No</option>
								</select>					
							</td>
					</tr>
					<tr>
							<td  align="right">
								<input type="submit" value="Update" class="input-box" />&nbsp;
							</td>
					</tr>	
			
		</table>
	</form>
<?php }?>
<?php if($serial=='spn02_b'){?>
	<form method="post" action="update_operation.php?qus=<?php echo $serial;?>&amp;resp_id=<?php echo $resp_id;?>">	
		<table align="center" class="table_border">
			<tr align="left">
							<td align="left" valign="top">SPN02B: Currently using Hukka:</td>
					</tr>
					<tr align="left">
							<td align="left" <?php if($row['spn02_b'] == ''||$row['spn02_b'] == '0'){?>bgcolor="#F7A244"<?php }?>>
								<select name="name">
									 <?php
											if($row['spn02_b'] == ''||$row['spn02_b'] == '0'){
											 echo "<option value='0' selected='selected'> Select</option>";
											}
											else{
												$hop=$row['spn02_b'];
												$sql1="SELECT value from retreive_data WHERE qus='spn02_b' and hoption='$hop' ";
												$result1= mysql_query($sql1) or die ("problem 2ND BLOCK OF RESPONDENT");
												$value = mysql_fetch_assoc($result1);
												$mv= $value['value'];
												echo "<option value='$hop' selected='selected'> $hop-$mv</option>";
											}
										?>
									<option value="1">1-Yes</option>
									<option value="3">3-No</option>
								</select>					
							</td>
					</tr>
					<tr>
							<td  align="right">
								<input type="submit" value="Update" class="input-box" />&nbsp;
							</td>
					</tr>	
			
		</table>
	</form>
<?php }?>
<?php if($serial=='spn02_c'){?>
	<form method="post" action="update_operation.php?qus=<?php echo $serial;?>&amp;resp_id=<?php echo $resp_id;?>">	
		<table align="center" class="table_border">
			<tr align="left">
							<td align="left" valign="top">SPN02C: Currently Smoking(Biri):</td>
					</tr>
					<tr align="left">
							<td align="left" <?php if($row['spn02_c'] == ''||$row['spn02_c'] == '0'){?>bgcolor="#F7A244"<?php }?>>
								<select name="name">
									 <?php
											if($row['spn02_c'] == ''||$row['spn02_c'] == '0'){
											 echo "<option value='0' selected='selected'> Select</option>";
											}
											else{
												$hop=$row['spn02_c'];
												$sql1="SELECT value from retreive_data WHERE qus='spn02_b' and hoption='$hop' ";
												$result1= mysql_query($sql1) or die ("problem 2ND BLOCK OF RESPONDENT");
												$value = mysql_fetch_assoc($result1);
												$mv= $value['value'];
												echo "<option value='$hop' selected='selected'> $hop-$mv</option>";
											}
										?>
									<option value="1">1-Yes</option>
									<option value="3">3-No</option>
								</select>					
							</td>
					</tr>
					<tr>
							<td  align="right">
								<input type="submit" value="Update" class="input-box" />&nbsp;
							</td>
					</tr>	
			
		</table>
	</form>
<?php }?>	
<?php if($serial=='spn02_d'){?>
	<form method="post" action="update_operation.php?qus=<?php echo $serial;?>&amp;resp_id=<?php echo $resp_id;?>">	
		<table align="center" class="table_border">
			<tr align="left">
							<td align="left" valign="top">SPN02D: Currently Smoking(Cigarettes):</td>
					</tr>
					<tr align="left">
							<td align="left" <?php if($row['spn02_d'] == ''||$row['spn02_d'] == '0'){?>bgcolor="#F7A244"<?php }?>>
								<select name="name">
									 <?php
											if($row['spn02_d'] == ''||$row['spn02_d'] == '0'){
											 echo "<option value='0' selected='selected'> Select</option>";
											}
											else{
												$hop=$row['spn02_d'];
												$sql1="SELECT value from retreive_data WHERE qus='spn02_b' and hoption='$hop' ";
												$result1= mysql_query($sql1) or die ("problem 2ND BLOCK OF RESPONDENT");
												$value = mysql_fetch_assoc($result1);
												$mv= $value['value'];
												echo "<option value='$hop' selected='selected'> $hop-$mv</option>";
											}
										?>
									<option value="1">1-Yes</option>
									<option value="3">3-No</option>
								</select>					
							</td>
					</tr>
					<tr>
							<td  align="right">
								<input type="submit" value="Update" class="input-box" />&nbsp;
							</td>
					</tr>	
			
		</table>
	</form>
<?php }?>	
<?php if($serial=='spn02_e'){?>
	<form method="post" action="update_operation.php?qus=<?php echo $serial;?>&amp;resp_id=<?php echo $resp_id;?>">	
		<table align="center" class="table_border">
			<tr align="left">
							<td align="left" valign="top">SPN02E: Currently using Gul:</td>
					</tr>
					<tr align="left">
							<td align="left" <?php if($row['spn02_e'] == ''||$row['spn02_e'] == '0'){?>bgcolor="#F7A244"<?php }?>>
								<select name="name">
									 <?php
											if($row['spn02_e'] == ''||$row['spn02_e'] == '0'){
											 echo "<option value='0' selected='selected'> Select</option>";
											}
											else{
												$hop=$row['spn02_e'];
												$sql1="SELECT value from retreive_data WHERE qus='spn02_b' and hoption='$hop' ";
												$result1= mysql_query($sql1) or die ("problem 2ND BLOCK OF RESPONDENT");
												$value = mysql_fetch_assoc($result1);
												$mv= $value['value'];
												echo "<option value='$hop' selected='selected'> $hop-$mv</option>";
											}
										?>
									<option value="1">1-Yes</option>
									<option value="3">3-No</option>
								</select>					
							</td>
					</tr>
					<tr>
							<td  align="right">
								<input type="submit" value="Update" class="input-box" />&nbsp;
							</td>
					</tr>	
			
		</table>
	</form>
<?php }?>


<?php if($serial=='spn03_a'){?>
	<form method="post" action="update_operation.php?qus=<?php echo $serial;?>&amp;resp_id=<?php echo $resp_id;?>">	
		<table align="center" class="table_border">
			<tr align="left">
							<td align="left" valign="top">SPN03A: Ending Age(Chewing Pan):</td>
					</tr>
					<tr align="left">
							<td align="left" <?php if($row['spn03_a'] == ''||$row['spn03_a'] == '0'){?>bgcolor="#F7A244"<?php }?>>
								<input type="text" name="name" value="<?php echo $row['spn03_a'];?>"				
							</td>
					</tr>
					<tr>
							<td  align="right">
								<input type="submit" value="Update" class="input-box" />&nbsp;
							</td>
					</tr>	
			
		</table>
	</form>
<?php }?>	
<?php if($serial=='spn03_b'){?>
	<form method="post" action="update_operation.php?qus=<?php echo $serial;?>&amp;resp_id=<?php echo $resp_id;?>">	
		<table align="center" class="table_border">
			<tr align="left">
							<td align="left" valign="top">SPN03B: Ending Age(Using Hukka):</td>
					</tr>
					<tr align="left">
							<td align="left" <?php if($row['spn03_b'] == ''||$row['spn03_b'] == '0'){?>bgcolor="#F7A244"<?php }?>>
								<input type="text" name="name" value="<?php echo $row['spn03_b'];?>"				
							</td>
					</tr>
					<tr>
							<td  align="right">
								<input type="submit" value="Update" class="input-box" />&nbsp;
							</td>
					</tr>	
			
		</table>
	</form>
<?php }?>	
<?php if($serial=='spn03_c'){?>
	<form method="post" action="update_operation.php?qus=<?php echo $serial;?>&amp;resp_id=<?php echo $resp_id;?>">	
		<table align="center" class="table_border">
			<tr align="left">
							<td align="left" valign="top">SPN03C: Ending Age(Smoking Biri):</td>
					</tr>
					<tr align="left">
							<td align="left" <?php if($row['spn03_c'] == ''||$row['spn03_c'] == '0'){?>bgcolor="#F7A244"<?php }?>>
								<input type="text" name="name" value="<?php echo $row['spn03_c'];?>"				
							</td>
					</tr>
					<tr>
							<td  align="right">
								<input type="submit" value="Update" class="input-box" />&nbsp;
							</td>
					</tr>	
			
		</table>
	</form>
<?php }?>	
<?php if($serial=='spn03_d'){?>
	<form method="post" action="update_operation.php?qus=<?php echo $serial;?>&amp;resp_id=<?php echo $resp_id;?>">	
		<table align="center" class="table_border">
			<tr align="left">
							<td align="left" valign="top">SPN03D: Ending Age(Smoking Cigarettes):</td>
					</tr>
					<tr align="left">
							<td align="left" <?php if($row['spn03_d'] == ''||$row['spn03_d'] == '0'){?>bgcolor="#F7A244"<?php }?>>
								<input type="text" name="name" value="<?php echo $row['spn03_d'];?>"				
							</td>
					</tr>
					<tr>
							<td  align="right">
								<input type="submit" value="Update" class="input-box" />&nbsp;
							</td>
					</tr>	
			
		</table>
	</form>
<?php }?>	
<?php if($serial=='spn03_e'){?>
	<form method="post" action="update_operation.php?qus=<?php echo $serial;?>&amp;resp_id=<?php echo $resp_id;?>">	
		<table align="center" class="table_border">
			<tr align="left">
							<td align="left" valign="top">SPN03E: Ending Age(Using Gul):</td>
					</tr>
					<tr align="left">
							<td align="left" <?php if($row['spn03_e'] == ''||$row['spn03_e'] == '0'){?>bgcolor="#F7A244"<?php }?>>
								<input type="text" name="name" value="<?php echo $row['spn03_e'];?>"				
							</td>
					</tr>
					<tr>
							<td  align="right">
								<input type="submit" value="Update" class="input-box" />&nbsp;
							</td>
					</tr>	
			
		</table>
	</form>
<?php }?>


<?php if($serial=='spn04_a'){?>
	<form method="post" action="update_operation.php?qus=<?php echo $serial;?>&amp;resp_id=<?php echo $resp_id;?>">	
		<table align="center" class="table_border">
			<tr align="left">
							<td align="left" valign="top">SPN04A: How many per day:</td>
					</tr>
					<tr align="left">
							<td align="left" <?php if($row['spn04_a'] == ''||$row['spn04_a'] == '0'){?>bgcolor="#F7A244"<?php }?>>
								<input type="text" name="name" value="<?php echo $row['spn04_a'];?>"				
							</td>
					</tr>
					<tr>
							<td  align="right">
								<input type="submit" value="Update" class="input-box" />&nbsp;
							</td>
					</tr>	
			
		</table>
	</form>
<?php }?>	
<?php if($serial=='spn04_b'){?>
	<form method="post" action="update_operation.php?qus=<?php echo $serial;?>&amp;resp_id=<?php echo $resp_id;?>">	
		<table align="center" class="table_border">
			<tr align="left">
							<td align="left" valign="top">SPN04B: How many per day:</td>
					</tr>
					<tr align="left">
							<td align="left" <?php if($row['spn04_b'] == ''||$row['spn04_b'] == '0'){?>bgcolor="#F7A244"<?php }?>>
								<input type="text" name="name" value="<?php echo $row['spn04_b'];?>"				
							</td>
					</tr>
					<tr>
							<td  align="right">
								<input type="submit" value="Update" class="input-box" />&nbsp;
							</td>
					</tr>	
			
		</table>
	</form>
<?php }?>	
<?php if($serial=='spn04_c'){?>
	<form method="post" action="update_operation.php?qus=<?php echo $serial;?>&amp;resp_id=<?php echo $resp_id;?>">	
		<table align="center" class="table_border">
			<tr align="left">
							<td align="left" valign="top">SPN04C: How many per day:</td>
					</tr>
					<tr align="left">
							<td align="left" <?php if($row['spn04_c'] == ''||$row['spn04_c'] == '0'){?>bgcolor="#F7A244"<?php }?>>
								<input type="text" name="name" value="<?php echo $row['spn04_c'];?>"				
							</td>
					</tr>
					<tr>
							<td  align="right">
								<input type="submit" value="Update" class="input-box" />&nbsp;
							</td>
					</tr>	
			
		</table>
	</form>
<?php }?>	
<?php if($serial=='spn04_d'){?>
	<form method="post" action="update_operation.php?qus=<?php echo $serial;?>&amp;resp_id=<?php echo $resp_id;?>">	
		<table align="center" class="table_border">
			<tr align="left">
							<td align="left" valign="top">SPN04D: How many per day:</td>
					</tr>
					<tr align="left">
							<td align="left" <?php if($row['spn04_d'] == ''||$row['spn04_d'] == '0'){?>bgcolor="#F7A244"<?php }?>>
								<input type="text" name="name" value="<?php echo $row['spn04_d'];?>"				
							</td>
					</tr>
					<tr>
							<td  align="right">
								<input type="submit" value="Update" class="input-box" />&nbsp;
							</td>
					</tr>	
			
		</table>
	</form>
<?php }?>	
<?php if($serial=='spn04_e'){?>
	<form method="post" action="update_operation.php?qus=<?php echo $serial;?>&amp;resp_id=<?php echo $resp_id;?>">	
		<table align="center" class="table_border">
			<tr align="left">
							<td align="left" valign="top">SPN04E: How many per day:</td>
					</tr>
					<tr align="left">
							<td align="left" <?php if($row['spn04_e'] == ''||$row['spn04_e'] == '0'){?>bgcolor="#F7A244"<?php }?>>
								<input type="text" name="name" value="<?php echo $row['spn04_e'];?>"				
							</td>
					</tr>
					<tr>
							<td  align="right">
								<input type="submit" value="Update" class="input-box" />&nbsp;
							</td>
					</tr>	
			
		</table>
	</form>
<?php }?>


<?php if($serial=='spn05_a'){?>
	<form method="post" action="update_operation.php?qus=<?php echo $serial;?>&amp;resp_id=<?php echo $resp_id;?>">	
		<table align="center" class="table_border">
			<tr align="left">
							<td align="left" valign="top">SPN05A: Starting Age:</td>
					</tr>
					<tr align="left">
							<td align="left" <?php if($row['spn05_a'] == ''||$row['spn05_a'] == '0'){?>bgcolor="#F7A244"<?php }?>>
								<input type="text" name="name" value="<?php echo $row['spn05_a'];?>"				
							</td>
					</tr>
					<tr>
							<td  align="right">
								<input type="submit" value="Update" class="input-box" />&nbsp;
							</td>
					</tr>	
			
		</table>
	</form>
<?php }?>	
<?php if($serial=='spn05_b'){?>
	<form method="post" action="update_operation.php?qus=<?php echo $serial;?>&amp;resp_id=<?php echo $resp_id;?>">	
		<table align="center" class="table_border">
			<tr align="left">
							<td align="left" valign="top">SPN05B: Starting Age:</td>
					</tr>
					<tr align="left">
							<td align="left" <?php if($row['spn05_b'] == ''||$row['spn05_b'] == '0'){?>bgcolor="#F7A244"<?php }?>>
								<input type="text" name="name" value="<?php echo $row['spn05_b'];?>"				
							</td>
					</tr>
					<tr>
							<td  align="right">
								<input type="submit" value="Update" class="input-box" />&nbsp;
							</td>
					</tr>	
			
		</table>
	</form>
<?php }?>	
<?php if($serial=='spn05_c'){?>
	<form method="post" action="update_operation.php?qus=<?php echo $serial;?>&amp;resp_id=<?php echo $resp_id;?>">	
		<table align="center" class="table_border">
			<tr align="left">
							<td align="left" valign="top">SPN05C: Starting Age:</td>
					</tr>
					<tr align="left">
							<td align="left" <?php if($row['spn05_c'] == ''||$row['spn05_c'] == '0'){?>bgcolor="#F7A244"<?php }?>>
								<input type="text" name="name" value="<?php echo $row['spn05_c'];?>"				
							</td>
					</tr>
					<tr>
							<td  align="right">
								<input type="submit" value="Update" class="input-box" />&nbsp;
							</td>
					</tr>	
			
		</table>
	</form>
<?php }?>	
<?php if($serial=='spn05_d'){?>
	<form method="post" action="update_operation.php?qus=<?php echo $serial;?>&amp;resp_id=<?php echo $resp_id;?>">	
		<table align="center" class="table_border">
			<tr align="left">
							<td align="left" valign="top">SPN05D: Starting Age:</td>
					</tr>
					<tr align="left">
							<td align="left" <?php if($row['spn05_d'] == ''||$row['spn05_d'] == '0'){?>bgcolor="#F7A244"<?php }?>>
								<input type="text" name="name" value="<?php echo $row['spn05_d'];?>"				
							</td>
					</tr>
					<tr>
							<td  align="right">
								<input type="submit" value="Update" class="input-box" />&nbsp;
							</td>
					</tr>	
			
		</table>
	</form>
<?php }?>	
<?php if($serial=='spn05_e'){?>
	<form method="post" action="update_operation.php?qus=<?php echo $serial;?>&amp;resp_id=<?php echo $resp_id;?>">	
		<table align="center" class="table_border">
			<tr align="left">
							<td align="left" valign="top">SPN05E: Starting Age:</td>
					</tr>
					<tr align="left">
							<td align="left" <?php if($row['spn05_e'] == ''||$row['spn05_e'] == '0'){?>bgcolor="#F7A244"<?php }?>>
								<input type="text" name="name" value="<?php echo $row['spn05_e'];?>"				
							</td>
					</tr>
					<tr>
							<td  align="right">
								<input type="submit" value="Update" class="input-box" />&nbsp;
							</td>
					</tr>	
			
		</table>
	</form>
<?php }?>

<?php if($serial=='spn06_a'){?>
	<form method="post" action="update_operation.php?qus=<?php echo $serial;?>&amp;resp_id=<?php echo $resp_id;?>">	
		<table align="center" class="table_border">
			<tr align="left">
							<td align="left" valign="top">SPN06A: How many years:</td>
					</tr>
					<tr align="left">
							<td align="left" <?php if($row['spn06_a'] == ''||$row['spn06_a'] == '0'){?>bgcolor="#F7A244"<?php }?>>
								<input type="text" name="name" value="<?php echo $row['spn06_a'];?>"				
							</td>
					</tr>
					<tr>
							<td  align="right">
								<input type="submit" value="Update" class="input-box" />&nbsp;
							</td>
					</tr>	
			
		</table>
	</form>
<?php }?>	
<?php if($serial=='spn06_b'){?>
	<form method="post" action="update_operation.php?qus=<?php echo $serial;?>&amp;resp_id=<?php echo $resp_id;?>">	
		<table align="center" class="table_border">
			<tr align="left">
							<td align="left" valign="top">SPN06B: How many years:</td>
					</tr>
					<tr align="left">
							<td align="left" <?php if($row['spn06_b'] == ''||$row['spn06_b'] == '0'){?>bgcolor="#F7A244"<?php }?>>
								<input type="text" name="name" value="<?php echo $row['spn06_b'];?>"				
							</td>
					</tr>
					<tr>
							<td  align="right">
								<input type="submit" value="Update" class="input-box" />&nbsp;
							</td>
					</tr>	
			
		</table>
	</form>
<?php }?>	
<?php if($serial=='spn06_c'){?>
	<form method="post" action="update_operation.php?qus=<?php echo $serial;?>&amp;resp_id=<?php echo $resp_id;?>">	
		<table align="center" class="table_border">
			<tr align="left">
							<td align="left" valign="top">SPN06C: How many years:</td>
					</tr>
					<tr align="left">
							<td align="left" <?php if($row['spn06_c'] == ''||$row['spn06_c'] == '0'){?>bgcolor="#F7A244"<?php }?>>
								<input type="text" name="name" value="<?php echo $row['spn06_c'];?>"				
							</td>
					</tr>
					<tr>
							<td  align="right">
								<input type="submit" value="Update" class="input-box" />&nbsp;
							</td>
					</tr>	
			
		</table>
	</form>
<?php }?>	
<?php if($serial=='spn06_d'){?>
	<form method="post" action="update_operation.php?qus=<?php echo $serial;?>&amp;resp_id=<?php echo $resp_id;?>">	
		<table align="center" class="table_border">
			<tr align="left">
							<td align="left" valign="top">SPN06D: How many years:</td>
					</tr>
					<tr align="left">
							<td align="left" <?php if($row['spn06_d'] == ''||$row['spn06_d'] == '0'){?>bgcolor="#F7A244"<?php }?>>
								<input type="text" name="name" value="<?php echo $row['spn06_d'];?>"				
							</td>
					</tr>
					<tr>
							<td  align="right">
								<input type="submit" value="Update" class="input-box" />&nbsp;
							</td>
					</tr>	
			
		</table>
	</form>
<?php }?>	
<?php if($serial=='spn06_e'){?>
	<form method="post" action="update_operation.php?qus=<?php echo $serial;?>&amp;resp_id=<?php echo $resp_id;?>">	
		<table align="center" class="table_border">
			<tr align="left">
							<td align="left" valign="top">SPN06E: How many years:</td>
					</tr>
					<tr align="left">
							<td align="left" <?php if($row['spn06_e'] == ''||$row['spn06_e'] == '0'){?>bgcolor="#F7A244"<?php }?>>
								<input type="text" name="name" value="<?php echo $row['spn06_e'];?>"				
							</td>
					</tr>
					<tr>
							<td  align="right">
								<input type="submit" value="Update" class="input-box" />&nbsp;
							</td>
					</tr>	
			
		</table>
	</form>
<?php }?>	
</body>
</html>